package org.fujay.langchain4jserver.domain.knowledge.event;

import lombok.Getter;
import org.fujay.langchain4jserver.domain.knowledge.vo.FileId;
import org.fujay.langchain4jserver.domain.knowledge.vo.KnowledgeBaseId;
import org.springframework.context.ApplicationEvent;

/**
 * 知识库文件删除事件
 */
@Getter
public class FileRemovedEvent extends ApplicationEvent {

    // Getters
    private final KnowledgeBaseId knowledgeBaseId;
    private final FileId fileId;

    public FileRemovedEvent(Object source, KnowledgeBaseId knowledgeBaseId, FileId fileId) {
        super(source);
        this.knowledgeBaseId = knowledgeBaseId;
        this.fileId = fileId;
    }
}
